package com.qf.controller;

import com.qf.pojo.Cat;
import com.qf.service.CatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CatController {
    @Autowired
    CatService catService;
    @RequestMapping("/findByCatAll")
    public List<Cat> findByCatAll(){
        return catService.findByCatAll();
    }

}
